<template>
	<view class="content">
		<view class="item">
			<view class="left">
				<view class="item-title">
					{{$t('about.appVersion')}}
				</view>
			</view>
			<view class="right">
				{{getAppVersion()}}
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		getAppVersion
	} from '../../utils/system';
	import {
		i18nTool
	} from '../../utils/i18en';
	import {onLoad}from '@dcloudio/uni-app';
	
	
	onLoad(() => {
		uni.setNavigationBarTitle({
			title: i18nTool('about.navTitle')
		})
	})
	
</script>

<style lang="scss" scoped>
	.content {
		.item {
			height: 120rpx;
			border-bottom: 2rpx solid #f1f1f1;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin: 0 30rpx;

			.left {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.item-icon {
					width: 46rpx;
					height: 46rpx;

					.icon-img {
						width: 100%;
						height: 100%;
					}
				}

				.item-title {
					font-size: 28rpx;
					padding-left: 20rpx;
				}
			}

		}
	}
</style>